//
//  ThreadDemo.swift
//  PerfectTemplate
//
//  Created by yaqiang bi on 2017/5/4.
//
//
import PerfectNet
import PerfectThread
import PerfectHTTP
import PerfectLib
func promiseDemo()  {
    do{
        let v = try Promise{1}.then{try $0()+1}.then{try $0()+1}.wait()
        print("Promise\(String(describing: v))")
    }catch{
        fatalError("\(error)")
    }
}


func createUUID()  {
    let u = UUID()
    print("创建的UUID：\(u.string)")
}
